/**
 * Tab
 */
#tab {
  position: fixed;
  top: 0;
  right: 0;
  left: 50px;
  overflow: hidden;
  height: 48px;
  background-color: #252526;


  .body-open-folder &,
  .body-open-directory & {
    left: 330px;
  }

  .body-open-folder.body-open-directory & {
    left: 610px;
  }

  .tab {
    position: absolute;
    left: 0;
    right: 100px;
    height: 100%;
    overflow: hidden;
  }

  .mdui-tab {
    position: absolute;
    transition: transform .45s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);

    a {
      .tab-title {
        width: 100%;
      }

      .tab-close {
        position: absolute;
        right: 0;
        font-size: 16px;
        border-radius: 50%;
        padding: 2px;
        display: none;

        &:hover {
          background-color: rgba(255, 255, 255, 0.12);
        }
      }

      &:hover {
        .tab-close {
          display: block;
        }
      }
    }
  }

  .mdui-tab-indicator {
    display: none;
  }

  .mdui-tab-active {
    background-color: #1e1e1e;
  }

  .tab-prev,
  .tab-next {
    position: absolute;
    top: 6px;
    display: none;
  }

  .tab-prev {
    right: 54px;
  }

  .tab-next {
    right: 10px;
  }

  .mdui-theme-layout-light & {
    background-color: #f3f3f3;

    .mdui-tab-active {
      background-color: #fff;
    }

    .tab {
      a {
        .tab-close {
          &:hover {
            background-color: rgba(0, 0, 0, 0.12);
          }
        }
      }
    }
  }
}

/**
 * 文章页面
 */
#article {
  position: absolute;
  left: 50px;
  top: 48px;
  right: 0;
  bottom: 0;
  overflow: auto;

  .body-open-folder &,
  .body-open-directory & {
    left: 330px;
  }

  .body-open-folder.body-open-directory & {
    left: 610px;
  }

  .markdown-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
  }
}